<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="/add"><button>添加</button></a>
<table border="1">
<%--    考勤编号”、“学生编号”、“学生姓名”、“出勤时间”、“出勤状况”--%>
    <tr>
        <th>考勤编号</th>
        <th>学生编号</th>
        <th>学生姓名</th>
        <th>出勤时间</th>
        <th>出勤状况</th>
    </tr>
        <c:forEach items="${list}" var="a" >
            <tr>
                <td>${a.aid}</td>
                <td>${a.sid}</td>
                <td>${a.sname}</td>
                <td>${a.time}</td>
                <td>
                    <c:if test="${a.type==1}">
                        已到
                    </c:if>
                    <c:if test="${a.type==2}">
                        迟到
                    </c:if>
                    <c:if test="${a.type==3}">
                        旷课
                    </c:if>
                </td>
            </tr>
        </c:forEach>
</table>
</body>
</html>
